﻿package mortal.game.view.nationalDayAct
{
    import com.mui.controls.*;
    import extend.language.*;
    import flash.events.*;
    import flash.text.*;
    import mortal.common.*;
    import mortal.common.global.*;
    import mortal.game.events.*;
    import mortal.game.mvc.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;
    import mortal.game.view.signUp.util.*;
    import mortal.mvc.core.*;

    public class nationalDayActLineOffPanel extends nationalDayActBasePanel
    {

        public function nationalDayActLineOffPanel()
        {
            super(2);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.nationalDayActSecondTxt2, 228, 54, this));
            pushUIToDisposeVec(UIFactory.gTextField(Language.getString(90453), 302 + 103, 533 - 50 + 40, 380, 40, this, GlobalStyle.textFormatBai.setSize(16), true));
            var _loc_1:* = GlobalStyle.textFormatLv.setSize(16);
            _loc_1.underline = true;
            var _loc_2:* = UIFactory.gTextField(Language.getString(90454), 440 + 103, 533 - 50 + 40, 160, 40, this, _loc_1);
            _loc_2.configEventListener(MouseEvent.CLICK, this.onClickLink);
            pushUIToDisposeVec(_loc_2);
            pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.nationalDayActArrow, 200 - 60, 400 - 100, this));
            pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.nationalDayActArrowTxt1, 200 + 112, 400 - 94, this));
            pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.nationalDayActArrowTxt2, 200 + 112, 425 - 94 + 10, this));
            pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.nationalDayActArrowTxt3, 200 + 112, 450 - 94 + 20, this));
            pushUIToDisposeVec(UIFactory.gImageBitmap(ImagesConst.nationalDayActExpBag, 200 - 43, 500 - 52 + 10, this));
            var _loc_3:* = GlobalStyle.textFormatZi.setSize(16);
            _loc_3.underline = true;
            var _loc_4:* = GlobalStyle.textFormatAnHuan.setSize(16);
            _loc_4.underline = true;
            var _loc_5:* = UIFactory.gTextField(Language.getString(90455), 210, 500 - 25, 220, 40, this, _loc_3);
            var _loc_6:* = UIFactory.gTextField(Language.getString(90456), 300 + 100, 500 - 25, 220, 40, this, _loc_4);
            _loc_5.name = "txt1";
            _loc_6.name = "txt2";
            _loc_5.configEventListener(MouseEvent.CLICK, this.onClickLink);
            _loc_6.configEventListener(MouseEvent.CLICK, this.onClickLink);
            pushUIToDisposeVec(_loc_5);
            pushUIToDisposeVec(UIFactory.bg(250 + 104, 500 - 40, 2, 10, this, ImagesConst.VSplitLine));
            pushUIToDisposeVec(_loc_6);
            return;
        }// end function

        private function onClickLink(event:MouseEvent) : void
        {
            if (event.target.name == "txt2")
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.SignUpOpenWinAndSwitchTag, SignUpConst.Tag_OffLineExp));
            }
            else
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.SignUpOpenWinAndSwitchTag, SignUpConst.Tag_OffLine));
            }
            return;
        }// end function

        override protected function setDescTxt() : void
        {
            this._actDescTxt.htmlText = Language.getString(90457);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            return;
        }// end function

    }
}
